package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class ModulusExpression implements NumericValueFunction {

    private int beginIndex;
    private int endIndex;
    private NumericValueExpression numericValueExpressionDividend;
    private NumericValueExpression numericValueExpressionDivisor;

    public ModulusExpression(int beginIndex,
                             int endIndex,
                             NumericValueExpression numericValueExpressionDividend,
                             NumericValueExpression numericValueExpressionDivisor) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.numericValueExpressionDividend = numericValueExpressionDividend;
        this.numericValueExpressionDivisor = numericValueExpressionDivisor;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public NumericValueExpression getNumericValueExpressionDividend() {
        return numericValueExpressionDividend;
    }

    public NumericValueExpression getNumericValueExpressionDivisor() {
        return numericValueExpressionDivisor;
    }

}
